Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Let DU(0,n) be the discrete uniform distribution on 0, 1, ..., n−1. Define random variables as below.
X1∼DU(0,n)
Xi+1∼DU(0,Xi) for i≥1
The above process is repeated until we get a random variable with the value zero. What is the expected number of variables (i.e., time to hit zero) in this process?
Let Tn be the time needed to hit zero.
tn=E(Tn)=E(E(Tn|X1))=n−1∑i=01nE(Tn|X1=i)=n−1∑i=01n(1+E(Ti))=n−1∑i=01n(1+ti)
ntn=n+n−1∑i=0ti
(n−1)tn−1=(n−1)+n−2∑i=0ti
ntn=n+tn−1+(n−1)tn−1−(n−1)=ntn−1+1
tn−tn−1=1n
n∑i=1(ti−ti−1)=n∑i=11i
t0=0
tn=n∑i=11i